import socket

socket_client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
socket_client.sendto("你好，我是客户端".encode("utf-8"), ("127.0.0.1", 8888))
data, server = socket_client.recvfrom(1024)
print(data.decode("utf-8"))
socket_client.close()

